//
//  AffirmViewController.m
//  KD
//
//  Created by Hubery on 15/8/22.
//  Copyright (c) 2015年 centling. All rights reserved.
//

#import "AffirmViewController.h"
#import "ResultViewController.h"

@interface AffirmViewController ()<UITableViewDataSource,UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UILabel *sumLabel;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property(nonatomic,strong) NSMutableArray *phoneNumbers;
- (IBAction)okBtn:(id)sender;

@end

@implementation AffirmViewController

+ (instancetype)initWithStoryBoard{
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    return [sb instantiateViewControllerWithIdentifier:@"AffirmViewController"];
}

- (void)viewDidLoad {
    [super viewDidLoad];
}

#pragma mark - UITableViewDataSource
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.phoneNumbers.count;
}

//-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    return cell;
//}

- (IBAction)okBtn:(id)sender {
    ResultViewController *vc = [ResultViewController initWithStoryBoard];
    [self.navigationController pushViewController:vc animated:YES];
}

#pragma mark - 懒加载
- (NSMutableArray *)phoneNumbers
{
    if (_phoneNumbers == nil) {
        _phoneNumbers = [[NSMutableArray alloc]init];
    }
    return _phoneNumbers;
}
@end
